home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
serial
/
zyxel-1.5-s
/
zyxel-1
/
Makefile.linux
< prev
next >
Wrap
Makefile
|
1994-12-01
|
2KB
|
73 lines
# Makefile for ZyXEL distribution
#
# Linux version, including generation of distribution tar files.
#
# ZyXEL is a "getty"-like program created especially to manage
# the ZyXEL U-1496E(+) modem
#
# This program is copyrighted by:
# R.E. Janssen
# Prof L Fuchslaan 8
# 3571 HC UTRECHT, NETHERLANDS
#
# Permission is granted only for noncommercial use. Any commercial use or
# distribution via commercial services without the author's permission is
# prohibited.
SHELL= /bin/sh
CC= gcc
CFLAGS= -O2 -fomit-frame-pointer -Wall
LFLAGS=
DEBUG= -DDEBUG
LIBS=
# where things go
#SBIN= /etc
SBIN= /sbin
ZYX= /usr/ZyXEL
# rules
all: ZyXEL
if [ -d rsynth-2.0 ] ; then cd rsynth-2.0; make CC="$(CC)" CFLAGS="$(CFLAGS)" LFLAGS="$(LFLAGS)"; fi
if [ -f /usr/include/sys/soundcard.h ] ; then cd zplay; make CC="$(CC)" CFLAGS="$(CFLAGS)" LFLAGS="$(LFLAGS)"; fi
ZyXEL: zyxel.o
$(CC) $(LFLAGS) -o $@ zyxel.o $(LIBS)
zplay: zplay.o dsp.o
$(CC) $(LFLAGS) -o $@ $* zplay.o dsp.o
install: all
-mv $(SBIN)/ZyXEL $(SBIN)/ZyXEL-
-cp ZyXEL $(SBIN)/ZyXEL
chmod 700 $(SBIN)/ZyXEL
if [ -d rsynth-2.0 ] ; then cp rsynth-2.0/say $(ZYX)/zsynth; fi
if [ -d rsynth-2.0 ] ; then cp rsynth-2.0/mkdictdb $(ZYX)/mkdictdb; fi
if [ -f zplay/zplay ] ; then cp zplay/zplay $(ZYX)/zplay; fi
-strip $(SBIN)/ZyXEL $(ZYX)/zsynth $(ZYX)/mkdictdb $(ZYX)/zplay
clean:
rm -f *.o core *.out .*list *.ln
clobber: clean
rm -f ZyXEL
dist: all
tar -Xdist.exclude -cvzf ZyXEL.tar.gz $(SBIN)/ZyXEL /etc/default/ZyXEL /etc/issue.modem $(ZYX)
mtime ZyXEL.tar.gz
chown rob.users ZyXEL.tar.gz
sdist:
tar -Xsdist.exclude -cvzf ZyXEL-source.tar.gz README Makefile.* zyxel.c alphasort.c scandir.c usleep.c hplay.c rsynth-2.0-diffs zplay
mtime ZyXEL-source.tar.gz
chown rob.users ZyXEL-source.tar.gz
zyxel.o: zyxel.c
$(CC) -c $(CFLAGS) $(DEBUG) zyxel.c
zplay.o: zplay.c dsp.h
dsp.o: dsp.c dsp.h